package com.lin.servlet;

import java.util.List;


import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.lin.service.CategoryServiceImpl;
import com.lin.service.ICategoryService;
import com.lin.utils.BaseServlet;
import com.lin.vo.Category;
/**
 * Category(购物项控制器)
 * @author manage
 *
 */
@WebServlet(name="CategoryServlet",urlPatterns={"/categoryServlet"})
public class CategoryServlet extends BaseServlet {
	private static final long serialVersionUID = 1L;
	
	private ICategoryService categoryService=new CategoryServiceImpl(); 
	public String findAllCategory(HttpServletRequest request,HttpServletResponse response){
		List<Category> categoryLists=categoryService.findAllCategory();
		request.setAttribute("categoryLists", categoryLists);
		return "change:/jsps/left.jsp";
	}

}
